//
//  MessageInfo.m
//  gdemm
//
//  Created by 乔明超 on 16/5/10.
//  Copyright © 2016年 Goldencis. All rights reserved.
//

#import "MessageInfo.h"
@interface MessageInfo()

@end
@implementation MessageInfo
- (instancetype)initWithDictionary:(NSDictionary *)dict{
    
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:dict];
        //[self updateState];
    }
    return self;
}
+ (instancetype)messageWithDictionary:(NSDictionary *)dict{
    
    return [[self alloc]initWithDictionary:dict];
    
}

+ (NSArray *)messageWithArray:(NSArray *)array{
    
    NSMutableArray *arr = [NSMutableArray array];
    for (NSDictionary *dict in array) {
        [arr addObject:[self messageWithDictionary:dict]];
    }
    
    return arr;
}
- (NSString *)description{
    return [NSString stringWithFormat:@"accountName = %@,noticeTitle = %@, noticeTime = %@, noticeCon = %@, userGuid = %@, selected = %d, isRead = %d",self.accountName,self.noticeTitle,self.noticeTime,self.noticeCon,self.userGuid,self.selected,self.isRead];
}



@end
